import { IsString, IsNumber, IsEnum } from 'class-validator';
import { PaymentMethod } from '../entities/order.entity';

/**
 * 创建订单 DTO
 */
export class CreateOrderDto {
  @IsString()
  subscriptionType: string;

  @IsNumber()
  duration: number;

  @IsEnum(PaymentMethod)
  paymentMethod: PaymentMethod;
}





